package com.gitee.jmliu1983.finacehelper.domain;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
//import com.ruoyi.common.core.annotation.Excel;
//import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.common.annotation.Excel;

/**
 * 每日基金净值对象 nv_fund_open_fund_info_em
 * 
 * @author ruoyi
 * @date 2025-02-25
 */
public class NvFundOpenFundInfoEm extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录id */
    private Long id;

    /** 产品代码 */
    @Excel(name = "产品代码")
    private String productId;

    /** 净值日期 */
    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ssXXX", timezone = "Asia/Shanghai")
    @Excel(name = "净值日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date tradeDt;
//    private LocalDateTime  tradeDt;

    /** 净值 */
    @Excel(name = "净值")
    private BigDecimal unitNetValue;

    /** 当日涨幅 */
    @Excel(name = "当日涨幅")
    private BigDecimal dailyIncPerc;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setTradeDt(Date tradeDt) 
//    public void setTradeDt(LocalDateTime  tradeDt) 
    {
        this.tradeDt = tradeDt;
    }

    public Date getTradeDt() 
//    public LocalDateTime  getTradeDt() 
    {
        return tradeDt;
    }
    public void setUnitNetValue(BigDecimal unitNetValue) 
    {
        this.unitNetValue = unitNetValue;
    }

    public BigDecimal getUnitNetValue() 
    {
        return unitNetValue;
    }
    public void setDailyIncPerc(BigDecimal dailyIncPerc) 
    {
        this.dailyIncPerc = dailyIncPerc;
    }

    public BigDecimal getDailyIncPerc() 
    {
        return dailyIncPerc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("tradeDt", getTradeDt())
            .append("unitNetValue", getUnitNetValue())
            .append("dailyIncPerc", getDailyIncPerc())
            .append("updateTime", getUpdateTime())
            .append("createTime", getCreateTime())
            .toString();
    }
}
